reftests: Fix random failures of reftest
authorBenjamin Otte <otte@redhat.com>
Mon, 9 Jun 2014 17:18:48 +0000 (19:18 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 9 Jun 2014 17:18:48 +0000 (19:18 +0200)
The reftest is testing "transparent" works as expected by drawing a
purple background once with purple and once with transparent and
expecting the same result. This works fine unless anti-aliasing happens
at rounded corners. The overdraw of the 2nd background changes the
antialiased pixels.

Fix this by explicitly setting the border radius to 0.

Also reindent the file to make it more readable.

testsuite/reftests/background-color-transparent.css

index bddb3c88fee2fc84397238fba46fcb0b4701de13..031f6b97ca5860131b2ead9265cefb94f938a68a 100644 (file)
@@ -1,4 +1,15 @@
-* { background-image: none; background-color: purple; }
-GtkButton { background-color: blue; }
-.transparent { background-color: transparent; }
-.reference { background-color: purple; }
+* {
+  background-image: none;
+  border-radius: 0;
+  background-color: purple;
+}
+
+GtkButton {
+  background-color: blue;
+}
+.transparent {
+  background-color: transparent;
+}
+.reference {
+  background-color: purple;
+}